package org.cybot.generator;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.cybot.entities.Characteristics;

public class CharacteristicsGenerator extends
		AbstractGenerator<Characteristics> {

	@SuppressWarnings("unchecked")
	public Characteristics generateInstance(Object... params) {
		List<String> properties = (List<String>) params[0];

		Map<String, Integer> values = new HashMap<String, Integer>();

		for (String property : properties) {
			Integer value = 10 + r.nextInt(90);
			values.put(property, value);
		}
		return new Characteristics(values);
	}

}
